package top.hidoctor.auscultation.adapter;

import android.bluetooth.BluetoothDevice;
import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.bean.MyBluetoothDevice;

public class BlueDeviceAdapter extends BaseQuickAdapter<BluetoothDevice> {
    public BlueDeviceAdapter(int layoutResId, List<BluetoothDevice> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BluetoothDevice item) {
        helper.setText(R.id.tv_name, item.getName());
        helper.setText(R.id.tv_address, item.getAddress());
    }
}
